%Initialize
clear; close all; clc

global t m n k add_one g

t = 2;      % Error-correcting rate
m = 3;      % Work in GF(2^m);
n = (2^m) - 1;%15;      % Code word length


k = n - 2*t;    %(n,k) code

%Create a vector space
v = gf_bin_primpoly(m);
vspace = gf_vector(v);
add_one = gf_add_one(vspace);

%Create a RS generator polynomial
g = RS_generator();

% printPoly(g)